package com.godGuang.patient.feign;


import com.godGuang.common.core.domain.Result;
import com.godGuang.common.system.domain.SysFile;
import com.godGuang.patient.feign.impl.FileControllerFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 李新科
 * @version 1.0
 * @description 文件上传Feign
 */
@FeignClient(name = "godGuang-file",fallback = FileControllerFeignImpl.class)
public interface FileControllerFeign {
    /**
     * 文件上传请求
     */
    @PostMapping("upload")
    public Result<SysFile> upload (MultipartFile file, @RequestParam("type") Integer type);
}
